package com.szrt.oa.user.entity;

import java.util.Date;

import org.springframework.stereotype.Component;

/**
 *  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `PHONE` varchar(255) DEFAULT NULL,
  `PASSWODE` varchar(255) DEFAULT NULL,
  `USERNAME` varchar(255) DEFAULT NULL,
  `SALARY` decimal(10,0) DEFAULT NULL,
  `BEGIN_DATE` datetime DEFAULT NULL,
  `DEPARMENT_ID` int(11) DEFAULT NULL,
 * @author My
 *
 */

@Component
public class UserEntity {
	
	private Integer id;
	private String phone;
	private String passwode;
	private String username;
	private Double salary;
	private Date begin_date;
	private Integer deparment_id;
	
	
	//非数据库字段
	private String menuName;
	
	private String url;
	
	
	public String getMenuName() {
		return menuName;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPasswode() {
		return passwode;
	}
	public void setPasswode(String passwode) {
		this.passwode = passwode;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public Double getSalary() {
		return salary;
	}
	public void setSalary(Double salary) {
		this.salary = salary;
	}
	public Date getBegin_date() {
		return begin_date;
	}
	public void setBegin_date(Date begin_date) {
		this.begin_date = begin_date;
	}
	public Integer getDeparment_id() {
		return deparment_id;
	}
	public void setDeparment_id(Integer deparment_id) {
		this.deparment_id = deparment_id;
	}
	@Override
	public String toString() {
		return "UserEntity [id=" + id + ", phone=" + phone + ", passwode=" + passwode + ", username=" + username
				+ ", salary=" + salary + ", begin_date=" + begin_date + ", deparment_id=" + deparment_id + ", menuName="
				+ menuName + ", url=" + url + "]";
	}
	
	
	

}
